xend: Remove redundant check of maximum memory size.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 12 Feb 2008 10:19:12 +0000 (10:19 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 12 Feb 2008 10:19:12 +0000 (10:19 +0000)
Currently, a wrong value of maximum memory size is checked by
_safe_set_memory() and _memory_sanity_check().

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendDomainInfo.py

index 7c8e0975a41bd47d49c39dac08af0e1f13df38c5..c1cb6aa998a21202a67df2e6f81336c6d43d4348 100644 (file)
@@ -707,9 +707,6 @@ class XendDomainInfo:
         log.debug("Setting memory maximum of domain %s (%s) to %d MiB.",
                   self.info['name_label'], str(self.domid), limit)
 
-        if limit <= 0:
-            raise XendError('Invalid memory size')
-
         MiB = 1024 * 1024
         self._safe_set_memory('memory_static_max', limit * MiB)